<template>
    <!-- 工作台预览 -->
    <div class="workbench">
        <wrapper v-for="cmp in config.children" :cmp="cmp" :key="cmp.id" class="cmp" :designing="false" />
    </div>
</template>
<script setup>
import wrapper from "./wrapper.vue";

const { config } = defineProps({
    config: Object,
});
</script>

<style lang="scss" scoped>
.workbench {
    height: 100%;
    position: relative;

    .cmp {
        position: absolute;
        box-sizing: border-box;
    }
}
</style>
